<template>
  <div class="recommend">
    <ul>
      <!--商品模块 分割线 -->
      <li>
        <h3>
          <img
            class="img"
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b849e46756af7c95002aa3906ed77c13.jpg"
            alt=""
          />
        </h3>
        <div class="d3">
          <p>小米11 Pro</p>
          <p>1/1.12''GN2｜骁龙888</p>
          <p>价格:¥999</p>
          <button>立即购买</button>
        </div>
      </li>
      <!--商品模块 分割线 -->
      <li>
        <h3>
          <img
            class="img"
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/94b22bbff9fa84440a0aed48f9f63154.jpg"
            alt=""
          />
        </h3>
        <div class="d3">
          <p>MIX FOLD 小米折叠屏手机</p>
          <p>折叠大屏｜自研芯片</p>
          <p>价格:¥999</p>
          <button>立即购买</button>
        </div>
      </li>
      <!--商品模块 分割线 -->
      <li>
        <h3>
          <img
            class="img"
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6dca45286d9d76d1f864a8ecf77f5600.jpg"
            alt=""
          />
        </h3>
        <div class="d3">
          <p>Note 9 5G</p>
          <p>天玑 800U处理器</p>
          <p>价格:¥999</p>
          <button>立即购买</button>
        </div>
      </li>
      <!--商品模块 分割线 -->
      <li>
        <h3>
          <img
            class="img"
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/455c8ad8d204e4ffd67865a98ae40c7b.jpg"
            alt=""
          />
        </h3>
        <div class="d3">
          <p>小米10S</p>
          <p>骁龙870 | 对称式双扬立体声</p>
          <p>价格:¥999</p>
          <button>立即购买</button>
        </div>
      </li>
    </ul>
    <!-- 更多小米手机产品 跳转 -->
    <div class="t1">更多小米手机产品></div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
/* html{
  line-height: 1.15;
} */
.t1 {
  display: block;
  background: #fff;
  color: #aaa;
  line-height: 50px;
  text-align: center;
  width: 100%;
  height: 52px;
  font-size: 0.9em;
  letter-spacing:2px;
}
* {
  margin: 0;
  padding: 0;
}
.recommend {
  width: 100%;
}
.d3 {
  padding: 5px 0 10px 0;
}
ul {
  display: flex;
  flex-wrap: wrap;
  margin-left: 6px;
}
ul li {
  width: 50%;
}
li div {
  width: 100%;
  text-align: center;
  padding: 2px;
}
button {
  width: 58%;
  height: 30px;
  font-size: 0.9em;
  border: none;
  background-color: #e46b64;
  color: white;
  font-size: 0.8em;
  border-radius: 5px;
}
li div p {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding-bottom: 3px;
  /* word-break: break-all; */
}
li div p:first-of-type {
  font-size: 0.9em;
  font-weight: 530;
}
li div p:nth-child(2) {
  font-size: 0.8em;
  color: #aaa;
}
li div p:nth-child(3) {
  font-size: 0.8em;
  color: red;
}
.img {
  padding-top: 3px;
  width: 179px;
  height: 145px;
}
</style>
